package cn.itcast.day05.demo05;

import java.util.Random;

public class demoRamdom1 {
    public static void main(String[] args) {
        int num=5;
        Random r= new Random();



        for (int i = 0; i < 10; i++) {
            int res=r.nextInt(num)+1;
            System.out.println(res);
        }

    }
}
